Skip to content

feat: X engagement actions (repost, bookmark, follow, lookup, search) - #40

Merged
alihesari merged 5 commits into
mainfrom
feature/x-engagement
Oct 18, 2026
Merged

alihesari merged 5 commits into
mainfrom
feature/x-engagement

Conversation

@alihesari

Copy link
Copy Markdown
Member

What was added

  • inbox()->repost(), unrepost(), bookmark(), unbookmark() mirroring like()/unlike() (POST /inbox/{id}/<action>, no body, returns InboxItem). InboxItem gains reposted, bookmarked, canRepost, canBookmark.
  • accounts()->followXUser($accountId, $userId) / unfollowXUser() (POST /accounts/{id}/x/follow|unfollow, body { user_id }) returning the new XFollowResult.
  • inbox()->getXPost($postId, $accountId) (GET /x/posts/{id}?account_id=) returning XPost, and inbox()->searchXPosts($q, $accountId, $options) (GET /x/search, options max_results / next_token) returning XSearchPage (posts + nextToken).
  • README (inbox and account extras), CHANGELOG Unreleased entry, CLAUDE.md resource map. The reconnect note (older X tokens answer 409 reconnect_required) and the metered-call / 402 platform_balance_spent note are in both README and CHANGELOG.
  • No version bump, no tag.

Tested

./vendor/bin/phpunit: OK (219 tests, 1046 assertions). New cases: InboxTest::testRepostAndBookmarkReturnTheItem, InboxTest::testXPostLookupAndSearch, AccountsTest::testXFollowAndUnfollowSendTheUserId (request method, path, query, body, and parsed response). phpcs clean on every touched file.

Downstream

fopost-laravel, fopost-symfony and fopost-woocommerce are not touched: none of them surfaces the inbox or the per-account platform extras, so nothing there changes.

Depends on the API PR in fopost/fopost (feature/x-engagement-actions); merge after it.

@alihesari
alihesari merged commit 08e11c1 into main Oct 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant